//	--------------------------------------------------------------------
//	Copyright(C) 2006,2007 Zhao Yukun. All rights reserved.
//	This file is a part of the Xeres system.
//	Xeres 2007
//	Contact : xeres.engine@gmail.com
//	$(reservedInfo)
//	$(reservedDeclaration)
//	--------------------------------------------------------------------
///	@file	<CModelLoader.h>
///	@path	~/src/scene/loader/
///	@date	2008/04/17
///	@desc	.

#pragma once

#include "xeres.h"

#include "graphics/IGeometry.h"
#include "graphics/IRenderer.h"

#include "scene/resource/ILoader.h"
#include "scene/resource/ResourceLoader.h"

namespace xeres {

	/*! 
		\class	CSimpleModelLoader
		\brief
	*/
	class CSimpleModelLoader : public IModelLoader
	{
	public:

		/// \name Constructor & Destructor
		//@{

		/// \ctor
		CSimpleModelLoader( void );

		/// \dtor
		virtual ~CSimpleModelLoader( void );

		//@}

		DECL_IOBJECT_CLASS( CSimpleModelLoader , IModelLoader );

	public:

		//@ interface

		/// \brief	Loads a model.
		virtual RefPass<IModel> OnLoad( RefWeak<IData> res , ResourceLoader& loader );

	};

} // namespace xeres
